/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.springframework.beans.factory.support;

import org.springframework.core.io.Resource;

/**
 *
 * @author lxz
 */
public class EncodedResource {

    private final Resource resource;
    private final String encoding;

    public EncodedResource(Resource resource) {
        this(resource, null);
    }
    public EncodedResource(Resource resource, String encoding) {
        this.resource = resource;
        this.encoding = encoding;
    }

    public String getEncoding() {
        return encoding;
    }

    public Resource getResource() {
        return resource;
    }

}
